<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title> - 登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/login.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
    </script>
    <style>
        html, body {
            width: 100%;
            height: 100%;
        }

        body.signin {
            background: url(img/loginBg.png) no-repeat;
            -webkit-background-size: 100% 100%;
            background-size: 100% 100%;
        }

        .title {
            text-align: center;
            font-size: 36px;
            font-weight: 400;
            position: absolute;
            top: 20px;
            left: 37%;
            letter-spacing: 10px;
        }

        .logo01 {
            width: 100px;
            height: 60px;
            background: url("img/dianxin.png") no-repeat;
            -webkit-background-size: 100% 100%;
            background-size: 100% 100%;
            position: absolute;
            top: 20px;
            left: 28%;
        }

        .logo02 {
            width: 100px;
            height: 60px;
            background: url("img/ecloud_logo.png") no-repeat;
            -webkit-background-size: 100% 100%;
            background-size: 100% 100%;
            position: absolute;
            top: 20px;
            left: 65%;
        }
    </style>

</head>

<body class="signin">
<div class="signinpanel">
    <div class="title">
        中小企业管理平台
    </div>
    <div class="logo01">

    </div>
    <div class="logo02">

    </div>
    <div class="row">
        <div class="col-sm-12">
            <form action='' method="get">
                <h4 class="no-margins">账号登录：</h4>
                <!--<p class="m-t-md">登录到H+后台主题UI框架</p>-->
                <input type="text" class="form-control uname" placeholder="用户名"/>
                <input type="password" class="form-control pword m-b" placeholder="密码"/>
                <a href="">忘记密码了？</a>
                <button class="btn btn-success btn-block">登录</button>
            </form>
        </div>
    </div>
    <!--<div class="signup-footer">
        <div class="pull-left">
            &copy; hAdmin
        </div>
    </div>-->
</div>
<script src="js/jquery.min.js"></script>
<script>
    $(function () {
        $('form').submit(function () {
            var uname = $('.uname').val();
            var pword = $('.pword').val();
            console.log(window.location.pathname);
            if (uname === 'dianxin' && pword === '123456') {
                window.location.pathname = '/wifihadoop/index1.html';
            } else if (uname === 'gongan' && pword === '123456') {
                window.location.pathname = '/wifihadoop/index2.html';
            } else if (uname === 'shanghu' && pword === '123456') {
                window.location.pathname = '/wifihadoop/index3.html';
            } else {
                alert('账户名或密码错误');
            }

            return false;
        })
    })
</script>
</body>

</html>
